﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.Content;
using System.Linq;
using System.Text;
using XNAProject.GameElements;


namespace XNAProject.Core
{
    public interface ISynchronize
    {
        void Send(SynchPack pack);
        SynchPack GetPack();
    }

    public class Synchronize : MarshalByRefObject, ISynchronize
    {
        public SynchPack synch;

        public void Send(SynchPack pack)
        {
            synch = pack;
        }

        public SynchPack GetPack()
        {
            return synch;
        }
    }

    [Serializable]
    public class SynchPack : MarshalByRefObject
    {
        //public Fleet synchFleet { get; set; }
        //public Hexagon[,] synchLevel { get; set; }
    }

    //[Serializable]
    //public class FirstSynchPack : MarshalByRefObject
    //{
    //    public Level synchLevel { get; set; }
    //    public Player synchPlayer { get; set; }
    //}
}
